<?php
/**
 * TestGuest Version1.0
 * ================================================
 * Copy 2017-2018 zxj
 * Web: http://www.zhaoxiaojie.club
 * ================================================
 * Author: Zxj
 * Date: 17/8/11
 * Time: 下午5:14
 * 处理发帖请求
 *
 */
session_start();
//设置响应头
header('content-type:text/html;charset=utf-8');

//引入配置文件
include 'common/mysql.inc.php';
include 'common/function.inc.php';
include 'common/ini.php';

//接收参数
if(empty($_REQUEST['id'])){

    _alert_back('参数异常!');

}else{

    $id = $_GET['id'];
    $sql = "select * from bbs_forum WHERE id={$id} limit 1";
    $res = mysql_query($sql);
    $row = mysql_fetch_assoc($res);
    //dd($row);
    //var_dump($row);
    //echo '<pre/>';

}

//载入模板
include VIEW.'/publish.html';

?>